import { Component, OnInit, AfterViewInit, ComponentFactoryResolver } from '@angular/core';
import { RouterModule, Routes, Router } from '@angular/router';
import { MdlDialogService, MdlDialogReference, MdlSnackbarService } from '@angular-mdl/core';

@Component({
  selector: 'qk-toolbar',
  templateUrl: './qktoolbar.component.html',
  styleUrls: ['./qktoolbar.component.scss']
})
export class QkToolbarComponent implements OnInit {
  constructor(private router: Router) { }

  ngOnInit() {

  }

  backToDeskTop(){
    this.router.navigateByUrl("desktop");
  }

  showNavItem(event: any){
    // let pDialog = this.dialogService.showCustomDialog({
    //   component: t,
    //   providers: [],
    //   isModal: true,
    //   styles: {'width': '350px'},
    //   clickOutsideToClose: true,
    //   enterTransitionDuration: 400,
    //   leaveTransitionDuration: 400
    // });
    // pDialog.subscribe( (dialogReference: MdlDialogReference) => {
    //   console.log('dialog visible', dialogReference);
    // });
  }
}
